package com.sxran.im.sbean;


public class ResultBean {

    private int code;
    private Object data;
    private String path;
    private Object request;
    private String requestId;

    public ResultBean() {
    }

    public ResultBean(int code, Object data) {
        this.code = code;
        this.data = data;
    }
    public static ResultBean ok(Object data){
        return new ResultBean(0,data);
    }
    public static ResultBean fail(Object data){
        return new ResultBean(500,data);
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Object getData() {
        return data;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Object getRequest() {
        return request;
    }

    public void setRequest(Object request) {
        this.request = request;
    }

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }
}
